<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=], initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    while((line = read_line()) != '')
    <script>
        function judgeReverse(str){
            var a = str
            var temp = parseInt(a)
            a = a.split("")
            a.reverse()
            a = a.join("")
            a= parseInt(a)
            if(temp>a){
                console.log("Yes")
            }else if(temp<a){
                console.log("No")
            }else if(temp==a){
                console.log("Equal")
            }
        }
        judgeReverse("ynn")
        judgeReverse("4")
        data= "35 -1 2 4"
        function dataSort(str){
            str = str.split(" ")
            
            for(var i in str){
                str[i]=parseInt(str[i])
            }
            
            str.sort(function(a,b){return a-b})
            return str
        }
        
        data = dataSort(data)
        function query(length,data){
            var cmd = "1 3 6 7"
            cmd = cmd.split(" ")
            var newcmd=[]
            var acc =0
            for(var i=0;i<length;i++){
                newcmd[i]=parseInt(cmd[i])
            }
            for(var j in newcmd){
                acc = acc+data[newcmd[j]-1]
            }
            return acc
            function cac(a,b,p,n,k){
    var answer = []
    var result= 0
    for(var i=0;i<n;i++){
       answer[i]=((a[i]*p[i])-(b[i]*(100-p[i])))/100
    }
    answer.sort(function(a,b){return a-b})
    for(var i = 0;i<k;i++){
        answer.shift()
    }
    for(var i = 0;i<answer.length;i++){
        result += answer[i]
    }
    return result
}
        }
        console.log(query(2,data))
    </script>
</body>
</html>